package com.sw.study.scn.code.service;

import com.sw.study.scn.pojo.AuthCode;
import org.springframework.data.domain.Example;

public interface CodeService {
    /**
     * 新增
     * @param email
     * @param code
     * @return
     */
    Boolean codeSave(String email,String code);

    /**
     * 查询
     * @param example
     * @return
     */
    AuthCode findOne(Example example);
}
